<section class="container user">
				<div class="content">
					<div class="crum"><a href="index.html">Home</a> &gt User infomation</div>
					<div class="profile">
						<div class="left">
							<div class="avatar">
								<?php 
								if(isset($user['photo'])):?>	
									<img src="<?=Yii::app()->baseUrl?>/images/<?=$user['photo']?>">
								<?php
								elseif($user['facebook_id'] !== null):?>
										<img src="https://graph.facebook.com/<?=$user['facebook_id']?>/picture?width=140">
								<?php else:?>
									<img src="<?=Yii::app()->theme->baseUrl?>/frontend/images/avatar.jpg">
								<?php endif;?>
								<div class="btn">
									<input type="file" class="inputUpload">
									<div class="btnUpload">Upload avatar</div>
								</div>
								<!-- <input type="file"> -->
							</div>
						</div>
						<div class="right">
							<div class="title">
								<h3>Basic Infomation</h3>
								<a href="<?=Yii::app()->baseUrl?>/profile.html?edit=true" class="edit">
									<img src="<?=Yii::app()->theme->baseUrl?>/frontend/images/edit-icon.png"> Edit
								</a>
							</div>
							<?php if(isset($_GET['edit'])):?>
								<div id="text-input">
									<div class="group-controls">
										<label>First name:</label>
										<div class="control">
											<input type="text" id="profile_first_name" value="<?=$user['first_name']?>">
										</div>
									</div>
									<div class="group-controls">
										<label>Last name:</label>
										<div class="control">
											<input type="text" id="profile_last_name" value="<?=$user['last_name']?>">
										</div>
									</div>
									<div class="group-controls">
										<label>Address:</label>
										<div class="control">
											<input type="text" id="profile_address" value="<?=$user['address']?>">
										</div>
									</div>
									<div class="group-controls">
										<label>Email:</label>
										<div class="control">
											<input type="email" id="profile_email" value="<?=$user['email']?>">
										</div>
									</div>
									<div class="btn">
										<a href="javascript:void(0);" id="saveChange">Save Changes</a>
									</div>
								</div>
							<?php else:?>
								<div id="text-label">
									<div class="group-controls">
										<label>Full name:</label>
										<div class="control">
											<?=$user['first_name']?> <?=$user['last_name']?>
										</div>
									</div>
									<div class="group-controls">
										<label>Address:</label>
										<div class="control">
											<?=$user['address']?>
										</div>
									</div>
									<div class="group-controls">
										<label>Email:</label>
										<div class="control">
											<?=$user['email']?>
										</div>
									</div>
								</div>
							<?php endif;?>
						</div>
					</div>
					<?php $this->Widget('AdsWidget');?>
				</div>
			</section>